package com.bardsoftware.foronuvolo.server;

import javax.servlet.http.HttpServletRequest;

import com.bardsoftware.foronuvolo.data.Discussion;
import com.bardsoftware.foronuvolo.data.DatastoreDiscussionChunk;
import com.bardsoftware.foronuvolo.data.DiscussionChunk;
import com.bardsoftware.foronuvolo.data.ForumUser;
import com.google.appengine.repackaged.com.google.common.collect.Maps;

public class DiscussionsViewAllServlet extends DiscussionsViewServlet {
    public DiscussionsViewAllServlet() {
        super("discussions_view.jsp", Maps.immutableMap("view", "all"));
    }
    @Override
    protected DiscussionChunk getPage(HttpServletRequest req, ForumUser user) {
        return DatastoreDiscussionChunk.getPage(req.getParameter("page"));
    }

}
